home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / djgpp / contrib / f2c95201 / src / libf77 / h_sign.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-02-04  |  199 b   |  13 lines

  1. #include "f2c.h"
  2.  
  3. #ifdef KR_headers
  4. shortint h_sign(a,b) shortint *a, *b;
  5. #else
  6. shortint h_sign(shortint *a, shortint *b)
  7. #endif
  8. {
  9. shortint x;
  10. x = (*a >= 0 ? *a : - *a);
  11. return( *b >= 0 ? x : -x);
  12. }
  13.